/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package music.types;

/**
 *
 * @author TJ
 */
public class IntervalHolder {
    private int scaleDegree;
    private Interval inter;
    public IntervalHolder(Interval i, int deg) {
        scaleDegree=deg;
        inter=i;
    }
    public int getDegree(){return scaleDegree;}
    public Interval getInterval(){return inter;}
    public MidiNote getNoteAbove(MidiNote n) {
        return Interval.getIntervalAbove(n, inter, scaleDegree);
    }
} 
